// 此文件不要修改

import {
  IPermissionConfig,
  PermissionType
} from "@/model/frame/IPermissionConfig";

const _permission: IPermissionConfig[] = [
  {
    type: PermissionType.ROUTE,
    name: "404"
  },
  {
    type: PermissionType.ROUTE,
    name: "403"
  }
];
const configs = {
  dir: new Array<string>(),
  route: new Array<string>()
};

_permission.forEach(item => {
  switch (item.type) {
    case PermissionType.ROUTE:
      configs.route.push(item.name);
      break;
    case PermissionType.DIR:
      configs.dir.push(item.name);
      break;
    case PermissionType.RESOURCE:
      break;
  }
});

export default configs;
